<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>简介</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="book.intl.html">« intl</a></li>
      <li style="float: right;"><a href="intl.setup.html">安装/配置 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.intl.html">intl</a></li>
    <li>简介</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="intro.intl" class="preface">
  <h1 class="title">简介</h1>
  <p class="para">
   Internationalization extension (further is referred as Intl) is a wrapper
   for <a href="http://www.icu-project.org/" class="link external">&raquo;&nbsp;ICU</a>
   library, enabling PHP programmers to perform various locale-aware operations including
   but not limited to formatting, transliteration, encoding conversion, calendar operations,
   <a href="http://www.unicode.org/reports/tr10/" class="link external">&raquo;&nbsp;UCA</a>-conformant collation, locating
   text boundaries and working with locale identifiers, timezones and graphemes,
  </p>

  <p class="para">
   It tends to closely follow ICU APIs, so that people having experience
   working with ICU in either C/C++ or Java could easily use the PHP API.
   Also, this way ICU documentation would be useful to understand various ICU
   functions.
  </p>

  <p class="para">
   Intl consists of several modules, each of them exposes the corresponding
   ICU API:
  </p>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     Collator: provides string comparison capability with support for
     appropriate locale-sensitive sort orderings.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     Number Formatter: allows to display number according to the localized
     format or given pattern or set of rules, and to parse strings into
     numbers.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     Message Formatter: allows to create messages incorporating data (such
     as numbers or dates) formatted according to given pattern and locale
     rules, and parse messages extracting data from them. It can handle plurals,
     locale-aware numbers, currencies, conditions and much more.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     Normalizer: provides a function to transform text into one of the Unicode
     normalization forms, and provides a routine to test if a given string is
     already normalized.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     Locale: provides interaction with locale identifiers in the form of
     functions to get subtags from locale identifier; parse, compose,
     match(lookup and filter) locale identifiers.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     Calendar: provides a class which could be used for locale-aware calendar operations
     and getting various information such as timezone for locale chosen, first day of week
     or if it&#039;s daylight saving time now.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     Timezone: provides a wrapper around the <a href="http://www.iana.org/time-zones" class="link external">&raquo;&nbsp;&quot;Olson&quot; database</a>
     which has information about all the timezones around the world.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     Date formatter: allows to display date and time according to the localized
     format or given pattern or set of rules, and to parse strings into
     date and time.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     Transliterator: allows getting latin representation of strings in various languages.
    </span>
   </li>
  </ul>

  
  <div class="section" id="intl.links">
   <h2 class="title">Links</h2>
   <ul class="itemizedlist">
    <li class="listitem">
     <p class="para"><a href="http://site.icu-project.org/docs/" class="link external">&raquo;&nbsp;Miscellaneous ICU docs</a></p>
    </li>
    <li class="listitem">
     <p class="para"><a href="https://unicode-org.github.io/icu/userguide/" class="link external">&raquo;&nbsp;ICU User Guide</a></p>
    </li>
    <li class="listitem">
     <p class="para"><a href="http://www.unicode.org/reports/tr10/" class="link external">&raquo;&nbsp;Unicode Collation Algorithm</a></p>
    </li>
   </ul>
  </div>
  

 </div></div></div></body></html>